<div class="action-dialog-model-fixed-body">
	<div class="detailsBox">
		<div class="openBox detaiTab">
			<form action="/caseManageRest/add_save"  class="action-ajax-form action-ajax-form-valid action-ajax-form-confirm" action-ajax-form-confirm-message="确认提交"
				 method="post" id="entity">
				<input name="id" value="${vo.id}" type="hidden">
				<table border="0" cellpadding="0" cellspacing="0" width="100%">
					<tr>
						<td class="bg" align="right" width="15%">贷款单号:</td>
						<td width="35%">
							<#if "${vo.id}"!="">
							 ${vo.billCode}
							 <input name="billCode" id="billCode" type="hidden" value="${vo.billCode}" readonly="readonly" />
							<#else>	
							<@autocomplete
								url="/caseManageRest/searchByBillCodecommon?code=" name="billCode"
								value="${vo.billCode}" hideIdName="loanappNo"
								hideIdValue="${vo.loanappNo}"  
								data\-action\-valid\-rule="required;"
								data\-action\-valid\-msg\-required="贷款单号不能为空！"
								action\-autocomplete\-callback\-function="fixname"/>(联想)
								<span><font color="red">*</font></span> 
								<span class="action-field-error" for="billCode" style="color: red;"></span>
							</#if>
						</td>
						<td class="bg" align="right" width="15%">借款人:</td>
						<td>
							<span name="loanUserName1" id="loanUserName1">${vo.loanId}</span> 
							<input name="loanId" id="loanId" type="hidden" value="${vo.loanId}" readonly="readonly" />
						</td>
					</tr>
					<tr>
						<td class="bg" align="right" width="15%">担保人:</td>
						<td width="35%">
							<span name="sponsor1" id="sponsor1">${vo.sponsor}</span>
							<input name="sponsor" id="sponsor" type="hidden" value="${vo.sponsor}" readonly="readonly" />
						</td>
						<td class="bg" align="right" width="15%">案件状态<span
							style="color: red;">*</span>:
						</td>
						<td>
							<@select dataSouceType="ajgl" 
							class="tabInp action-valid-field"
							data\-action\-valid\-rule="required;"
							data\-action\-valid\-msg\-required="案件状态不能为空！" 
							name ="caseStatus" value="${vo.caseStatus}"/>
							<span><font color="red">*</font></span> 
							<span class="action-field-error" for="caseStatus" style="color: red;"></span>
						</td>
					</tr>
					<tr>
						<td class="bg" align="right" width="15%">编号:</td>
						<td width="35%">
							<input type="text" name="num" id="num"
							data-action-valid-rule="required;"
							data-action-valid-rule="number;maxlength:8;"
							data-action-valid-msg-required="编号不能为空！"
							data-action-valid-msg-number="编号只能输入数字"
							data-action-valid-msg-maxlength="请输入至多10个数字"
							class="tabInp" value="${vo.num}" />
							<span><font color="red">*</font></span> 
							<span class="action-field-error" for="num" style="color: red"></span>
						</td>
						<td class="bg" align="right" width="15%">案号:</td>
						<td>
							<input type="text" name="referNum"
							data-action-valid-rule="required;"
							data-action-valid-rule="maxlength:25;"
							data-action-valid-msg-required="案号不能为空！"
							data-action-valid-msg-maxlength="请输入至多25个数字"
							id="referNum" class="tabInp" value="${vo.referNum}" />
							<span><font color="red">*</font></span> 
							<span class="action-field-error" for="referNum" style="color: red"></span>
						</td>
					</tr>
					<tr>
						<td class="bg" align="right" width="15%">经办人:</td>
						<td width="35%">
							<input type="text" name="operator" 
							data-action-valid-rule="required;"  readonly="readonly" 
							data-action-valid-msg-required="经办人不能为空！"
							id="operator" class="tabInp" value="${currentUser}" />
							<span><font color="red">*</font></span> 
							<span class="action-field-error" for="operator" style="color: red"></span>
						</td>
						<td class="bg" align="right" width="15%">涉案本金:</td>
						<td>
							<input type="text" name="principalInvolved" id="principalInvolved"
							data-action-valid-rule="required;"
							data-action-valid-rule="number;"
							data-action-valid-msg-required="涉案本金不能为空！"
							data-action-valid-msg-number="涉案本金只能输入数字"
							class="tabInp" value="${vo.principalInvolved}" /> 元
							<span><font color="red">*</font></span> 
							<span class="action-field-error" for="principalInvolved" style="color: red"></span>
						</td>
					</tr>
					<tr>
						<td class="bg" align="right" width="15%">起诉时涉案利息:</td>
						<td width="35%">
							<input type="text" name="interestInvolved" id="interestInvolved"
							data-action-valid-rule="required;"
							data-action-valid-msg-required="起诉时涉案利息不能为空！"
							class="tabInp" value="${vo.interestInvolved}" />
							<span><font color="red">*</font></span> 
							<span class="action-field-error" for="interestInvolved" style="color: red"></span>
						</td>
						<td class="bg" align="right" width="15%">起诉时涉案罚息:
						</td>
						<td>
							<input type="text" name="defaulltInvolved" 
							data-action-valid-rule="required;"
							data-action-valid-msg-required="起诉时涉案罚息不能为空！"
							id="defaulltInvolved" class="tabInp" value="${vo.defaulltInvolved}" />
							<span><font color="red">*</font></span> 
							<span class="action-field-error" for="defaulltInvolved" style="color: red"></span>
						</td>
					</tr>
					<tr>
						<td class="bg" align="right" width="15%">诉讼金额:</td>
						<td width="35%">
							<input type="text" name="litigationAmount" 
							data-action-valid-rule="required;"
							data-action-valid-rule="number;"
							data-action-valid-msg-required="诉讼金额不能为空！"
							data-action-valid-msg-number="诉讼金额只能输入数字"
							id="litigationAmount" class="tabInp" value="${vo.litigationAmount}" /> 元
							<span><font color="red">*</font></span> 
							<span class="action-field-error" for="litigationAmount" style="color: red"></span>
						</td>
						<td class="bg" align="right" width="15%">案由:
						</td>
						<td>
							<textarea rows="4" name="summary"
								cols="80" style="resize: none;" placeholder="最多只能输入500字"
								onpropertychange="if(value.length>500) value=value.substr(0,500)">${vo.summary}</textarea>
						</td>
					</tr>
					<tr>
						<td class="bg" align="right" width="15%">一审法院或仲裁机构:</td>
						<td width="35%">
							<input type="text" name="firstCourt"
							data-action-valid-rule="required;"
							data-action-valid-rule="maxlength:30;"
							data-action-valid-msg-required="一审法院或仲裁机构不能为空！"
							data-action-valid-msg-maxlength="请输入至多30个数字"
							id="firstCourt" class="tabInp" value="${vo.firstCourt}" />
							<span><font color="red">*</font></span> 
							<span class="action-field-error" for="firstCourt" style="color: red"></span>
						</td>
						<td class="bg" align="right" width="15%">一审立案时间:</td>
						<td>
							<@date name="firstFilltime" id="firstFilltime" 
							data\-action\-valid\-rule="required;"
							data\-action\-valid\-msg\-required="一审立案时间不能为空！" 
							class="tabInp" value="${vo.firstFilltime}" />
							<span><font color="red">*</font></span> 
							<span class="action-field-error" for="firstFilltime" style="color: red;"></span>
						</td>
					</tr>
					<tr>
						<td class="bg" align="right" width="15%">案件承办联系人:</td>
						<td width="35%">
							<input type="text" name="caseContact"
							data-action-valid-rule="required;"
							data-action-valid-rule="maxlength:10;"
							data-action-valid-msg-required="案件承办联系人不能为空！"
							data-action-valid-msg-maxlength="请输入至多10个数字"
							 id="caseContact" class="tabInp" value="${vo.caseContact}" />
							<span><font color="red">*</font></span> 
							<span class="action-field-error" for="caseContact" style="color: red;"></span>
						</td>
						<td class="bg" align="right" width="15%">预付的受理费:
						</td>
						<td>
							<input type="text" name="prepaidFee"
							data-action-valid-rule="required;"
							data-action-valid-rule="number;"
							data-action-valid-msg-required="预付的受理费不能为空！"
							data-action-valid-msg-number="预付的受理费只能输入数字"
							id="prepaidFee" class="tabInp" value="${vo.prepaidFee}" /> 元
							<span><font color="red">*</font></span> 
							<span class="action-field-error" for="prepaidFee" style="color: red;"></span>
						</td>
					</tr>
					<tr>
						<td class="bg" align="right" width="15%">预付的保全费:</td>
						<td width="35%">
							<input type="text" name="securityFee" 
							data-action-valid-rule="required;"
							data-action-valid-rule="number;"
							data-action-valid-msg-required="预付的保全费不能为空！"
							data-action-valid-msg-number="预付的保全费只能输入数字"
							id="securityFee" class="tabInp" value="${vo.securityFee}" /> 元
							<span><font color="red">*</font></span> 
							<span class="action-field-error" for="securityFee" style="color: red;"></span>
						</td>
						<td class="bg" align="right" width="15%">案件已回收金额:
						</td>
						<td>
							<input type="text" name="recoverAmount" 
							data-action-valid-rule="required;"
							data-action-valid-rule="number;"
							data-action-valid-msg-required="案件已回收金额不能为空！"
							data-action-valid-msg-number="案件已回收金额只能输入数字"
							id="recoverAmount" class="tabInp" value="${vo.recoverAmount}" /> 元
							<span><font color="red">*</font></span> 
							<span class="action-field-error" for="recoverAmount" style="color: red;"></span>
						</td>
					</tr>
					<tr>
						<td class="bg" align="right" width="15%">案件预计损失金额:</td>
						<td width="35%">
							<input type="text" name="lossAmount" 
							data-action-valid-rule="required;"
							data-action-valid-rule="number;"
							data-action-valid-msg-required="案件预计损失金额不能为空！"
							data-action-valid-msg-number="案件预计损失金额只能输入数字"
							id="lossAmount" class="tabInp" value="${vo.lossAmount}" /> 元
							<span><font color="red">*</font></span> 
							<span class="action-field-error" for="lossAmount" style="color: red;"></span>
						</td>
						<td class="bg" align="right" width="15%">案件预计损失率:
						</td>
						<td>
							<input type="text" name="lossRate" 
							data-action-valid-rule="required;"
							data-action-valid-rule="number;"
							data-action-valid-msg-required="案件预计损失率不能为空！"
							data-action-valid-msg-number="案件预计损失率只能输入数字"
							id="lossRate" class="tabInp" value="${vo.lossRate}" /> %
							<span><font color="red">*</font></span> 
							<span class="action-field-error" for="lossRate" style="color: red;"></span>
						</td>
					</tr>
					<tr>
						<td class="bg" align="right" width="15%">诉讼保全情况:
						</td>
						<td colspan="3">
						<textarea rows="4" name="preservationLitigation"
							data-action-valid-rule="required;"
							data-action-valid-rule="maxlength:10;"
							data-action-valid-msg-required="诉讼保全情况不能为空！"
							data-action-valid-msg-maxlength="请输入至多500个数字"
								cols="80" style="resize: none;" placeholder="最多只能输入500字"
								onpropertychange="if(value.length>500) value=value.substr(0,500)">${vo.preservationLitigation}</textarea>
							<span><font color="red">*</font></span> 
							<span class="action-field-error" for="preservationLitigation" style="color: red;"></span>
						</td>
					</tr>
					<tr>
						<td class="bg" align="right" width="15%">诉讼进展情况:
						</td>
						<td colspan="3"><textarea rows="4" name="proceedingProgress"
							data-action-valid-rule="required;"
							data-action-valid-rule="maxlength:10;"
							data-action-valid-msg-required="诉讼进展情况不能为空！"
							data-action-valid-msg-maxlength="请输入至多500个数字"
								cols="80" style="resize: none;" placeholder="最多只能输入500字"
								onpropertychange="if(value.length>500) value=value.substr(0,500)">${vo.proceedingProgress}</textarea>
							<span><font color="red">*</font></span> 
							<span class="action-field-error" for="proceedingProgress" style="color: red;"></span>
						</td>
					</tr>
					<tr>
						<td class="bg" align="right" width="15%">财产线索情况:
						</td>
						<td colspan="3"><textarea rows="4" name="propertyClues" cols="80"
							data-action-valid-rule="required;"
							data-action-valid-rule="maxlength:10;"
							data-action-valid-msg-required="财产线索情况不能为空！"
							data-action-valid-msg-maxlength="请输入至多500个数字"
								style="resize: none;" placeholder="最多只能输入500字"
								onpropertychange="if(value.length>500) value=value.substr(0,500)">${vo.propertyClues}</textarea>
							<span><font color="red">*</font></span> 
							<span class="action-field-error" for="propertyClues" style="color: red;"></span>
						</td>
					</tr>
						<tr>
						<td class="bg" align="right" width="15%">备注:
						</td>
						<td colspan="3"><textarea rows="4" name="remark" cols="80"
								style="resize: none;" placeholder="最多只能输入500字"
								onpropertychange="if(value.length>500) value=value.substr(0,500)">${vo.remark}</textarea>
						</td>
					</tr>
					<tr>
						<td colspan="4" style="text-align: center;">
							<input type="submit" value="保存" class="btn_auto_30 btn_blue" id="sv" />
						</td>
					</tr>
				</table>
			</form>
		</div>
	</div>
</div>
<script type="text/javascript">
	function fixname(data) {
		$("#loanId").val(data[3]);
		$("#loanUserName1").html(data[3]);
		$("#sponsor1").html(data[4]);
		$("#sponsor").val(data[4]);
	}
</script>